import request from '@/utils/request'

// 查询直播间推荐列表
export function listStudioRecommend(query) {
  return request({
    url: '/system/StudioRecommend/list',
    method: 'get',
    params: query
  })
}

// 查询直播间推荐详细
export function getStudioRecommend(id) {
  return request({
    url: '/system/StudioRecommend/' + id,
    method: 'get'
  })
}

// 新增直播间推荐
export function addStudioRecommend(data) {
  return request({
    url: '/system/StudioRecommend',
    method: 'post',
    data: data
  })
}

// 修改直播间推荐
export function updateStudioRecommend(data) {
  return request({
    url: '/system/StudioRecommend',
    method: 'put',
    data: data
  })
}

// 删除直播间推荐
export function delStudioRecommend(id) {
  return request({
    url: '/system/StudioRecommend/' + id,
    method: 'delete'
  })
}
